package io.renren.modules.back.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.modules.back.dao.GoodsSpecificationDao;
import io.renren.modules.back.entity.GoodsSpecificationEntity;
import io.renren.modules.back.service.GoodsSpecificationService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 商品规格service接口实现类
 *
 * @author zzh
 * @email 862583291@qq.com
 * @date 2019年4月9日 上午15:28:55
 */
@Service("goodsSpecificationService")
public class GoodsSpecificationServiceImpl extends ServiceImpl<GoodsSpecificationDao, GoodsSpecificationEntity> implements GoodsSpecificationService {
    @Override
    public GoodsSpecificationEntity queryObject(Integer id) {
        return baseMapper.queryObject(id);
    }

    @Override
    public List<GoodsSpecificationEntity> queryList(Map<String, Object> map) {
        return baseMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return baseMapper.queryTotal(map);
    }

    @Override
    public int updateObject(GoodsSpecificationEntity goodsSpecification) {
        return baseMapper.update(goodsSpecification);
    }
}
